package com.example.chenjian.myapplication;

import android.app.Activity;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;

import com.example.chenjian.myapplication.GoodsListFragment;

public class MainActivity extends FragmentActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        Fragment fragment = new GoodsListFragment();
        getSupportFragmentManager().beginTransaction().add(R.id.activity_main, fragment, "goods").commit();
    }
}
